package com.test.kotlin05

import kotlin.math.absoluteValue

class Player(
    _name:String,
    _age:Int,
    _isNormal:Boolean
) {
    var name = _name
        get() = field.capitalize()
        set(value){
            field = value.trim()
        }

    var age = _age
        get() = age.absoluteValue
        set(value){
            field = value.absoluteValue
        }

    var isNormal = _isNormal


}


fun main() {
    val player:Player = Player("jack",18,true)

    println(player.name)

}